<!DOCTYPE html>
<html lang="en">

<head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>监控中心 - 仓库管理</title>

    <!-- Bootstrap Core CSS -->
    <link href="${request.getContextPath()}/public/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">

    <!-- MetisMenu CSS -->
    <link href="${request.getContextPath()}/public/vendor/metisMenu/metisMenu.min.css" rel="stylesheet">

    <!-- Custom CSS -->
    <link href="${request.getContextPath()}/public/dist/css/sb-admin-2.css" rel="stylesheet">

    <!-- Custom Fonts -->
    <link href="${request.getContextPath()}/public/vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">

    <link href="${request.getContextPath()}/public/css/bootstrap-datetimepicker.min.css" rel="stylesheet" type="text/css">

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->

</head>

<body>

<div id="wrapper">


    <#if receipt??>

        <!-- Page Content -->
        <div id="page-wrapper">
            <div class="container-fluid">

                <div class="row">
                    <div class="col-lg-10">
                        <h4 class="page-header">仓单编号：${receipt.no}</h4>
                    </div>
                </div>
                <!-- /.row -->
                <div class="row">
                    <div class="col-lg-4">
                        <form id="myform" role="form" method="post" action="#" onsubmit="return checkFormValue(this)">

                            <div class="form-group">
                                <label>所在仓库 :  ${receipt.warehouse.name}</label>
                            </div>

                            <div class="form-group">
                                <label>入库日期 : ${receipt.joinTime?string('yyyy-MM-dd')}</label>
                            </div>

                            <div class="form-group">
                                <label>货主名称 ：${receipt.ownerName}</label>
                            </div>

                            <div class="form-group">
                                <label>品种 ：${receipt.breed}</label>
                            </div>

                            <div class="form-group">
                                <label>属性 ：${receipt.attribute}</label>
                            </div>

                            <div class="form-group">
                                <label>总重量 ：${receipt.goodsWeight}
                                    <#if receipt.weightType=0>吨</#if>
                                    <#if receipt.weightType=1>千克</#if>
                                </label>
                            </div>

                            <div class="form-group">
                                <label>总数量 : ${receipt.goodsQuantity}
                                    <#if receipt.quantityType=0>捆</#if>
                                    <#if receipt.quantityType=1>包</#if>
                                </label>
                            </div>

                            <div class="form-group">
                                <label>库位 : ${receipt.location}</label>
                            </div>

                        </form>
                    </div>

                </div>
                <!-- /.row -->

                <div class="row">
                    <div class="col-sm-12">
                        <h4 class="page-header">仓单监控视频</h4>
                    </div>

                    <#list relationCameraList as camera>
                        <div id="camera-item-${camera.id}" class="col-lg-4 camera-item" data-cameraid="${camera.id}">
                            <div class="panel panel-default">
                                <div class="panel-body">
                                    <a href="${request.getContextPath()}/api/camera/vdio.do?id=${camera.id}"> <img  class="img-responsive" src="${camera.coverImageUrl}"></a>
                                </div>
                                <div class="panel-footer">
                                    <div class="row">
                                        <div class="col-lg-9"><h5>${camera.name}</h5></div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </#list>
                </div>

                <!-- /.row -->
            </div>
            <!-- /.container-fluid -->
        </div>
        <!-- /#page-wrapper -->

        <#else>

            <div id="page-wrapper">
                <div class="container-fluid">

                    <div class="row">
                        <div class="col-lg-10">
                            <h4 class="page-header">编号为 ${receiptNo} 的仓单不存在</h4>
                        </div>
                    </div>
                </div>
            </div>

    </#if>




</div>
<!-- /#wrapper -->


</body>

</html>
